package com.example.springboot.common;

import com.example.springboot.entity.User;
import lombok.Data;

import java.util.List;

@Data
public class Page<T> {
    private Integer total;
   /* private List<T> userlist;*/
    private List<T> list;


    public List<T> setList(List<T> list) {

    this.list = list;
    return list;
    }

    public List<User> getList() {
        return (List<User>) list;
    }
}
